package com.atguigu.gulimall.product;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/*
* 1: 整合mybatis-plus,
*    1): <dependency>
            <groupId>com.baomidou</groupId>
            <artifactId>mybatis-plus</artifactId>
            <version>3.3.1</version>
        </dependency>
    2): 配置mybatis-plus:
    *  1) 配置:
    *         1) 引入mysql驱动:
    *         2) 配置数据源:在application.yml中配置数据源信息
    *  2) 配置mybatis-plus:
    *         1)引入mapper扫描: @MapperScan("com.atguigu.gulimall.product.dao")
    *         2)告诉mybatis-plus sql映射文件
* 2: 编写启动类
* */
@MapperScan("com.atguigu.gulimall.product.dao")
@SpringBootApplication
public class GulimallProductApplication {

    public static void main(String[] args) {
        SpringApplication.run(GulimallProductApplication.class, args);
    }

}
